// 初始化布局
import { init } from './layout'
import GraphBack from '../src'
import { updateRouter } from './router'
import './router'

// 样式文件
const style = document.createElement('link')
style.href = './theme.css'
style.rel = 'stylesheet'
document.head.appendChild(style)

// 全局组件
;(window as any).GraphBack = GraphBack
;(window as any).hljs.configure({ ignoreUnescapedHTML: true })

// 初始化内容
init()
setTimeout(() => updateRouter(location.hash || '#/background'), 10)
